home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / binutils.7 / binutils / binutils-2.7 / gas / config / obj-hp300.c < prev    next >
Encoding:
C/C++ Source or Header  |  1996-07-04  |  1.4 KB  |  53 lines

  1. /* This file is obj-hp300.h
  2.    Copyright (C) 1993 Free Software Foundation, Inc.
  3.  
  4.    This file is part of GAS, the GNU Assembler.
  5.  
  6.    GAS is free software; you can redistribute it and/or modify
  7.    it under the terms of the GNU General Public License as published by
  8.    the Free Software Foundation; either version 2, or (at your option)
  9.    any later version.
  10.  
  11.    GAS is distributed in the hope that it will be useful,
  12.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.    GNU General Public License for more details.
  15.  
  16.    You should have received a copy of the GNU General Public License
  17.    along with GAS; see the file COPYING.  If not, write to
  18.    the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
  19.  
  20. #include "config/obj-aout.c"
  21.  
  22. /* Aout file generation & utilities */
  23. void
  24. hp300_header_append (where, headers)
  25.      char **where;
  26.      object_headers *headers;
  27. {
  28.   tc_headers_hook (headers);
  29.  
  30. #define DO(FIELD)    \
  31.   { \
  32.     md_number_to_chars (*where, headers->header.FIELD, sizeof (headers->header.FIELD)); \
  33.     *where += sizeof (headers->header.FIELD); \
  34.   }
  35.  
  36.   DO (a_info);
  37.   DO (a_spare1);
  38.   DO (a_spare2);
  39.   DO (a_text);      
  40.   DO (a_data);     
  41.   DO (a_bss);     
  42.   DO (a_trsize); 
  43.   DO (a_drsize);
  44.   DO (a_spare3);
  45.   DO (a_spare4);
  46.   DO (a_spare5);
  47.   DO (a_entry); 
  48.   DO (a_spare6);
  49.   DO (a_spare7);
  50.   DO (a_syms);  
  51.   DO (a_spare8);
  52. }
  53.